import request from '../utils/request'

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    qs: true,
    data
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}

export function updatePassword(oldpassword,password,userid) {
    return request({
        url: '/user/updatePwd',
        method: 'post',
        // qs: true,
        data: {
            oldpassword,
            password,
            userid
        }
    })
}
